API: gdk: Deprecate gdk_cursor_ref() and gdk_cursor_unref()
authorBenjamin Otte <otte@redhat.com>
Mon, 20 Dec 2010 02:27:05 +0000 (03:27 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 21 Dec 2010 17:07:05 +0000 (12:07 -0500)
Now that GdkCursor is a GObject, it doesn't need custom refcount
handling anymore.

gdk/gdkcursor.c
gdk/gdkcursor.h

index 3bbbbddae97113d008f077ac316756d23402bc14..840e8fcf626623bf45b163ee69b9db065ac08f9a 100644 (file)
@@ -78,6 +78,8 @@ gdk_cursor_init (GdkCursor *cursor)
  * Adds a reference to @cursor.
  *
  * Return value: Same @cursor that was passed in
+ *
+ * Deprecated: 3.0: Use g_object_ref() instead
  */
 GdkCursor*
 gdk_cursor_ref (GdkCursor *cursor)
@@ -93,6 +95,8 @@ gdk_cursor_ref (GdkCursor *cursor)
  *
  * Removes a reference from @cursor, deallocating the cursor
  * if no references remain.
+ *
+ * Deprecated: 3.0: Use g_object_unref() instead
  */
 void
 gdk_cursor_unref (GdkCursor *cursor)
index 717c7d5eb4ac6ee40460cc08b8de17795eb842c8..8a88545f1f3ff3c01ac09dff8b44d4367840b35e 100644 (file)
@@ -228,11 +228,13 @@ GdkCursor* gdk_cursor_new_from_pixbuf      (GdkDisplay      *display,
                                          GdkPixbuf       *pixbuf,
                                          gint             x,
                                          gint             y);
+GdkCursor*  gdk_cursor_new_from_name    (GdkDisplay      *display,
+                                         const gchar     *name);
 GdkDisplay* gdk_cursor_get_display      (GdkCursor       *cursor);
+#ifndef GDK_DISABLE_DEPRECATED
 GdkCursor*  gdk_cursor_ref               (GdkCursor       *cursor);
 void        gdk_cursor_unref             (GdkCursor       *cursor);
-GdkCursor*  gdk_cursor_new_from_name    (GdkDisplay      *display,
-                                         const gchar     *name);
+#endif
 GdkPixbuf*  gdk_cursor_get_image         (GdkCursor       *cursor);
 GdkCursorType gdk_cursor_get_cursor_type (GdkCursor       *cursor);